From: Federico Mena Quintero Date: Mon, 2 Dec 2019 14:02:32 +0000 (-0600) Subject: Fix always-true condition X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~346 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=01c0803a4a7199db42694e742e29130cc87ca3be;p=gnome-shell.git Fix always-true condition CrCascadePrivate->sheets is a statically-sized array inside the struct; it can't be NULL. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/861#note_659216 --- diff --git a/src/st/croco/cr-cascade.c b/src/st/croco/cr-cascade.c index b8f827716..8789288cc 100644 --- a/src/st/croco/cr-cascade.c +++ b/src/st/croco/cr-cascade.c @@ -199,7 +199,7 @@ cr_cascade_destroy (CRCascade * a_this) if (PRIVATE (a_this)) { gulong i = 0; - for (i = 0; PRIVATE (a_this)->sheets && i < NB_ORIGINS; i++) { + for (i = 0; i < NB_ORIGINS; i++) { if (PRIVATE (a_this)->sheets[i]) { if (cr_stylesheet_unref (PRIVATE (a_this)->sheets[i])